import { Controller, Get } from '@nestjs/common';
import { MenuService } from './menu.service';

@Controller('access')
export class MenuController {
  constructor(private menuService: MenuService) {}

  @Get('menu')
  async findAll() {
    const res = await this.menuService.findAll();
    return {
      code: 200,
      data: res,
      message: '成功',
    };
  }
}
